var obj_temp=new Array()
var a_n=0
function init(ids,cons,dis,tt){
　 document.getElementById(ids).getElementsByTagName('li')[0].className='active';
　document.getElementById(cons).innerHTML=document.getElementById(dis.replace("nav","div")+"l1").innerHTML;
　document.getElementById(ids).onmouseover=function(){onmousOver(ids,cons,dis);}
　document.getElementById(ids).onmouseout=function(){timer_next=setTimeout(" next_d()",100000);}
　var li_o=document.getElementById(ids).getElementsByTagName('li');
　var li_n=li_o.length-1
　for (var m=0;m<li_o.length;m++)if (li_o[m].id=='more')li_n--;
　obj_temp[a_n]=new Array(ids,cons,dis,tt,li_n,0,1);a_n++
}
function onmousOver(ids,cons,dis){
clearTimeout(timer_next)
o = o || window.event;
var obj=o.target || o.srcElement;
if (obj.tagName=='LI'){
　var id_=obj.parentElement.id;
　if (obj.className=='active'||obj.id=='more')return;
　var o=document.getElementById(ids).getElementsByTagName('li');
　for (var i=0;i<=o.length-1;i++){if (o[i].id!='more')o[i].className='default'}
　obj.className='active';
　document.getElementById(cons).innerHTML=document.getElementById(obj.id.replace("nav","div")).innerHTML;
　for (var i=0;i<=o.length-1;i++){
　 if (o[i].className=='active')var a_n_=i
　}
　
for (var kk=0;kk<=obj_temp.length-1;kk++){
if (obj_temp[kk][0]==id_){obj_temp[kk][5]=a_n_;}
}
}
}
next_d()
var timer_next
function next_d(){
for (var kk=0;kk<=obj_temp.length-1;kk++){
obj_temp[kk][6]+=1;
if (obj_temp[kk][6]>=obj_temp[kk][3]){
　obj_temp[kk][6]=1;
　obj_temp[kk][5]=(obj_temp[kk][5]>=obj_temp[kk][4])?0:obj_temp[kk][5]+1
　li_chang(obj_temp[kk][0],obj_temp[kk][1],obj_temp[kk][2],obj_temp[kk][5]);
}
}
timer_next=setTimeout(" next_d()",100000)
}
function li_chang(ids,cons,dis,j){
var o=document.getElementById(ids).getElementsByTagName('li');
for (var i=0;i<=o.length-1;i++) if (o[i].id!='more')o[i].className='default';
o[j].className='active';
document.getElementById(cons).innerHTML=document.getElementById(o[j].id.replace("nav","div")).innerHTML;
}



        function LinkToInfoList(div_e)
        {
            for(var i=1;i<=3;i++)
            {
                var e = document.getElementById(div_e+i.toString());
                
                if(e && e.className == "active")
                {
                    location.href="view/InfoListView.aspx?t="+GetCurrentItemKey(div_e,i);
                    break ;
                }
            }            
        }
        function GetCurrentItemKey(div_e,index)
        {
            var t="";
            if(div_e == "nav1_l")
            {
                if(index == 1)
                    t="zxsq";//最新诉求
                else
                    t="zxhf";//最新回复
            }
            else if(div_e == "nav2_l")
            {
                if(index == 1)
                    t="zfbm";//政府部门
                else if(index == 2)
                    t="fwck";//服务窗口
                else 
                    t="hy";//行业
            }
            else if(div_e == "nav3_l")
            {
                if(index == 1)
                    t="ftsl";//访谈实录
                else if(index == 2)
                    t="zzft";//正在访谈
                else 
                    t="yg";//预告
            }
            return t;
        }


